#pragma once
#ifdef _WINDOWS
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#endif

class MouseUtility
{

private:
	
	float m_mouseX;
	float m_mouseY;

	float m_mouseWinX;
	float m_mouseWinY;
	MouseUtility();
	static MouseUtility* _instance;

	int m_winWidth;
	int m_winHeight;

public:
	static MouseUtility* GetInst();
	~MouseUtility(void);
	void updateMousePos(float _posX, float _posY);
	float getMouseX();
	float getMouseY();
	void getWinSize(int _W, int _H);
	int getWinWidth();
	int getWinHeight();
	float getWinRatio();
	void convertToWinCoor(float &_X, float &_Y);
	void convertToWinCoor();
	float getGLMouseX();
	float getGLMouseY();

	bool m_isLClicked;
	bool m_isRClicked;

	bool m_isLRelease;
	bool m_isRRelease;

};
